/*
 * @Author: hq
 * @Date: 2022-07-21 10:21:30
 * @LastEditors: hq
 * @LastEditTime: 2022-09-20 16:23:07
 * @Description: your project
 * @version: 1.0
 */
import request from "@/utils/request";

//代金卷
export function cashCouponList(data) {
    return request({
        url: "web/cashCouponList", //自己的接口地址
        method: "post", //请求方法
        data,
        base: "mch",
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}
//删除代金卷
export function delCashCoupon(data) {
    return request({
        url: "web/delCashCoupon", //自己的接口地址
        method: "post", //请求方法
        data,
        base: "mch",
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}
//编辑代金卷
export function editCashCoupon(data) {
    return request({
        url: "web/editCashCoupon", //自己的接口地址
        method: "post", //请求方法
        data,
        base: "mch",
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}
//添加代金卷
export function createCashCoupon(data) {
    return request({
        url: "web/createCashCoupon", //自己的接口地址
        method: "post", //请求方法
        data,
        base: "mch",
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}
//套餐列表
export function comboList(data) {
    return request({
        url: "web/comboList", //自己的接口地址
        method: "post", //请求方法
        data,
        base: "mch",
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}
//套餐详情
export function comboDetail(data) {
    return request({
        url: "web/comboDetail", //自己的接口地址
        method: "post", //请求方法
        data,
        base: "mch",
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}
//删除套餐
export function delCombo(data) {
    return request({
        url: "web/delCombo", //自己的接口地址
        method: "post", //请求方法
        data,
        base: "mch",
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}
//编辑套餐
export function editCombo(data) {
    return request({
        url: "web/editCombo", //自己的接口地址
        method: "post", //请求方法
        data,
        base: "mch",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
        },
    });
}
//添加套餐
export function createCombo(data) {
    return request({
        url: "web/createCombo", //自己的接口地址
        method: "post", //请求方法
        data,
        base: "mch",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
        },
    });
}
//线下订单
export function offlineOrder(data) {
    return request({
        url: "order/ofl", //自己的接口地址
        method: "post", //请求方法
        data,
    });
}